package com.hb.impl;

import com.hb.interfaces.Knight;
import com.hb.interfaces.Quest;

public class BraveKnight implements Knight {
    private Quest quest;

    public BraveKnight(Quest quest) {
        this.quest = quest;
    }

    @Override
    public void embarkOnQuest() {
        quest.embark();
    }

    public void init() {
        System.out.println("配置的 init-method");
    }

    public void destroy() {
        System.out.println("配置的 destroy-method");
    }
}
